package de.koller.zero.engine.commands;

import de.koller.zero.arch.CTTZNode;
import de.koller.zero.arch.ICommand;
import de.koller.zero.engine.ZeroEngine;

public class AddPlayer implements ICommand {

	private final int number;

	public AddPlayer( int number ) {
		this.number = number;
	}
	
	@Override
	public void handleCommand( CTTZNode engine ) {
		for( int i = 0; i < number; i++ )
			((ZeroEngine)engine).realmControl.createPlayer();
	}
	
}
